
public class Thing
{
    public String name;
    private int energy;
    
    public Thing(String name, int energy)
    {
        this.name = name;
        this.energy = energy;
    }

    public int getEnergy()
    {
        return this.energy;
    }
    
    public String getName()
    {
        return name;
    }
    
    public String toString(){
        return "name: " + this.name + ",energy: " + this.energy;
    }
}
